package com.example.testsqlite;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;

public class OperationDelete extends Activity {
	String table;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_operation_delete);
		
		Intent intent = getIntent();
		table = intent.getStringExtra("table");
		
		MainActivity.sqliteDatabase.execSQL("delete "+table);
		setResult(Operation.RESULT_OK);
		finish();
	}	
}
